package com.codeyang.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 菜单 vo 对象
 *
 * @Auther: 雷哥
 * @Description: 构造菜单返回给前台的vo
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MenuTreeVo implements Serializable {

    /**
     * 菜单id
     */
    private String id;
    /**
     * 菜单路径-url | name
     */
    private String serPath;
    /**
     * 是否显示
     */
    private boolean show = true;

    public MenuTreeVo(String id, String serPath) {
        this.id = id;
        this.serPath = serPath;
    }
}